home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / pipnss / nsICipherInfo.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  10KB  |  280 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsICipherInfo.idl
  3.  */
  4.  
  5. #ifndef __gen_nsICipherInfo_h__
  6. #define __gen_nsICipherInfo_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. #ifndef __gen_nsISimpleEnumerator_h__
  14. #include "nsISimpleEnumerator.h"
  15. #endif
  16.  
  17. /* For IDL files that don't want to include root IDL files. */
  18. #ifndef NS_NO_VTABLE
  19. #define NS_NO_VTABLE
  20. #endif
  21.  
  22. /* starting interface:    nsICipherInfo */
  23. #define NS_ICIPHERINFO_IID_STR "028e2b2a-1f0b-43a4-a1a7-365d2d7f35d0"
  24.  
  25. #define NS_ICIPHERINFO_IID \
  26.   {0x028e2b2a, 0x1f0b, 0x43a4, \
  27.     { 0xa1, 0xa7, 0x36, 0x5d, 0x2d, 0x7f, 0x35, 0xd0 }}
  28.  
  29. class NS_NO_VTABLE nsICipherInfo : public nsISupports {
  30.  public: 
  31.  
  32.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_ICIPHERINFO_IID)
  33.  
  34.   /* readonly attribute ACString longName; */
  35.   NS_IMETHOD GetLongName(nsACString & aLongName) = 0;
  36.  
  37.   /* readonly attribute PRBool isSSL2; */
  38.   NS_IMETHOD GetIsSSL2(PRBool *aIsSSL2) = 0;
  39.  
  40.   /* readonly attribute PRBool isFIPS; */
  41.   NS_IMETHOD GetIsFIPS(PRBool *aIsFIPS) = 0;
  42.  
  43.   /* readonly attribute PRBool isExportable; */
  44.   NS_IMETHOD GetIsExportable(PRBool *aIsExportable) = 0;
  45.  
  46.   /* readonly attribute PRBool nonStandard; */
  47.   NS_IMETHOD GetNonStandard(PRBool *aNonStandard) = 0;
  48.  
  49.   /* readonly attribute ACString symCipherName; */
  50.   NS_IMETHOD GetSymCipherName(nsACString & aSymCipherName) = 0;
  51.  
  52.   /* readonly attribute ACString authAlgorithmName; */
  53.   NS_IMETHOD GetAuthAlgorithmName(nsACString & aAuthAlgorithmName) = 0;
  54.  
  55.   /* readonly attribute ACString keaTypeName; */
  56.   NS_IMETHOD GetKeaTypeName(nsACString & aKeaTypeName) = 0;
  57.  
  58.   /* readonly attribute ACString macAlgorithmName; */
  59.   NS_IMETHOD GetMacAlgorithmName(nsACString & aMacAlgorithmName) = 0;
  60.  
  61.   /* readonly attribute PRInt32 effectiveKeyBits; */
  62.   NS_IMETHOD GetEffectiveKeyBits(PRInt32 *aEffectiveKeyBits) = 0;
  63.  
  64. };
  65.  
  66. /* Use this macro when declaring classes that implement this interface. */
  67. #define NS_DECL_NSICIPHERINFO \
  68.   NS_IMETHOD GetLongName(nsACString & aLongName); \
  69.   NS_IMETHOD GetIsSSL2(PRBool *aIsSSL2); \
  70.   NS_IMETHOD GetIsFIPS(PRBool *aIsFIPS); \
  71.   NS_IMETHOD GetIsExportable(PRBool *aIsExportable); \
  72.   NS_IMETHOD GetNonStandard(PRBool *aNonStandard); \
  73.   NS_IMETHOD GetSymCipherName(nsACString & aSymCipherName); \
  74.   NS_IMETHOD GetAuthAlgorithmName(nsACString & aAuthAlgorithmName); \
  75.   NS_IMETHOD GetKeaTypeName(nsACString & aKeaTypeName); \
  76.   NS_IMETHOD GetMacAlgorithmName(nsACString & aMacAlgorithmName); \
  77.   NS_IMETHOD GetEffectiveKeyBits(PRInt32 *aEffectiveKeyBits); 
  78.  
  79. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  80. #define NS_FORWARD_NSICIPHERINFO(_to) \
  81.   NS_IMETHOD GetLongName(nsACString & aLongName) { return _to GetLongName(aLongName); } \
  82.   NS_IMETHOD GetIsSSL2(PRBool *aIsSSL2) { return _to GetIsSSL2(aIsSSL2); } \
  83.   NS_IMETHOD GetIsFIPS(PRBool *aIsFIPS) { return _to GetIsFIPS(aIsFIPS); } \
  84.   NS_IMETHOD GetIsExportable(PRBool *aIsExportable) { return _to GetIsExportable(aIsExportable); } \
  85.   NS_IMETHOD GetNonStandard(PRBool *aNonStandard) { return _to GetNonStandard(aNonStandard); } \
  86.   NS_IMETHOD GetSymCipherName(nsACString & aSymCipherName) { return _to GetSymCipherName(aSymCipherName); } \
  87.   NS_IMETHOD GetAuthAlgorithmName(nsACString & aAuthAlgorithmName) { return _to GetAuthAlgorithmName(aAuthAlgorithmName); } \
  88.   NS_IMETHOD GetKeaTypeName(nsACString & aKeaTypeName) { return _to GetKeaTypeName(aKeaTypeName); } \
  89.   NS_IMETHOD GetMacAlgorithmName(nsACString & aMacAlgorithmName) { return _to GetMacAlgorithmName(aMacAlgorithmName); } \
  90.   NS_IMETHOD GetEffectiveKeyBits(PRInt32 *aEffectiveKeyBits) { return _to GetEffectiveKeyBits(aEffectiveKeyBits); } 
  91.  
  92. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  93. #define NS_FORWARD_SAFE_NSICIPHERINFO(_to) \
  94.   NS_IMETHOD GetLongName(nsACString & aLongName) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLongName(aLongName); } \
  95.   NS_IMETHOD GetIsSSL2(PRBool *aIsSSL2) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsSSL2(aIsSSL2); } \
  96.   NS_IMETHOD GetIsFIPS(PRBool *aIsFIPS) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsFIPS(aIsFIPS); } \
  97.   NS_IMETHOD GetIsExportable(PRBool *aIsExportable) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsExportable(aIsExportable); } \
  98.   NS_IMETHOD GetNonStandard(PRBool *aNonStandard) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNonStandard(aNonStandard); } \
  99.   NS_IMETHOD GetSymCipherName(nsACString & aSymCipherName) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSymCipherName(aSymCipherName); } \
  100.   NS_IMETHOD GetAuthAlgorithmName(nsACString & aAuthAlgorithmName) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAuthAlgorithmName(aAuthAlgorithmName); } \
  101.   NS_IMETHOD GetKeaTypeName(nsACString & aKeaTypeName) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetKeaTypeName(aKeaTypeName); } \
  102.   NS_IMETHOD GetMacAlgorithmName(nsACString & aMacAlgorithmName) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMacAlgorithmName(aMacAlgorithmName); } \
  103.   NS_IMETHOD GetEffectiveKeyBits(PRInt32 *aEffectiveKeyBits) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetEffectiveKeyBits(aEffectiveKeyBits); } 
  104.  
  105. #if 0
  106. /* Use the code below as a template for the implementation class for this interface. */
  107.  
  108. /* Header file */
  109. class nsCipherInfo : public nsICipherInfo
  110. {
  111. public:
  112.   NS_DECL_ISUPPORTS
  113.   NS_DECL_NSICIPHERINFO
  114.  
  115.   nsCipherInfo();
  116.  
  117. private:
  118.   ~nsCipherInfo();
  119.  
  120. protected:
  121.   /* additional members */
  122. };
  123.  
  124. /* Implementation file */
  125. NS_IMPL_ISUPPORTS1(nsCipherInfo, nsICipherInfo)
  126.  
  127. nsCipherInfo::nsCipherInfo()
  128. {
  129.   /* member initializers and constructor code */
  130. }
  131.  
  132. nsCipherInfo::~nsCipherInfo()
  133. {
  134.   /* destructor code */
  135. }
  136.  
  137. /* readonly attribute ACString longName; */
  138. NS_IMETHODIMP nsCipherInfo::GetLongName(nsACString & aLongName)
  139. {
  140.     return NS_ERROR_NOT_IMPLEMENTED;
  141. }
  142.  
  143. /* readonly attribute PRBool isSSL2; */
  144. NS_IMETHODIMP nsCipherInfo::GetIsSSL2(PRBool *aIsSSL2)
  145. {
  146.     return NS_ERROR_NOT_IMPLEMENTED;
  147. }
  148.  
  149. /* readonly attribute PRBool isFIPS; */
  150. NS_IMETHODIMP nsCipherInfo::GetIsFIPS(PRBool *aIsFIPS)
  151. {
  152.     return NS_ERROR_NOT_IMPLEMENTED;
  153. }
  154.  
  155. /* readonly attribute PRBool isExportable; */
  156. NS_IMETHODIMP nsCipherInfo::GetIsExportable(PRBool *aIsExportable)
  157. {
  158.     return NS_ERROR_NOT_IMPLEMENTED;
  159. }
  160.  
  161. /* readonly attribute PRBool nonStandard; */
  162. NS_IMETHODIMP nsCipherInfo::GetNonStandard(PRBool *aNonStandard)
  163. {
  164.     return NS_ERROR_NOT_IMPLEMENTED;
  165. }
  166.  
  167. /* readonly attribute ACString symCipherName; */
  168. NS_IMETHODIMP nsCipherInfo::GetSymCipherName(nsACString & aSymCipherName)
  169. {
  170.     return NS_ERROR_NOT_IMPLEMENTED;
  171. }
  172.  
  173. /* readonly attribute ACString authAlgorithmName; */
  174. NS_IMETHODIMP nsCipherInfo::GetAuthAlgorithmName(nsACString & aAuthAlgorithmName)
  175. {
  176.     return NS_ERROR_NOT_IMPLEMENTED;
  177. }
  178.  
  179. /* readonly attribute ACString keaTypeName; */
  180. NS_IMETHODIMP nsCipherInfo::GetKeaTypeName(nsACString & aKeaTypeName)
  181. {
  182.     return NS_ERROR_NOT_IMPLEMENTED;
  183. }
  184.  
  185. /* readonly attribute ACString macAlgorithmName; */
  186. NS_IMETHODIMP nsCipherInfo::GetMacAlgorithmName(nsACString & aMacAlgorithmName)
  187. {
  188.     return NS_ERROR_NOT_IMPLEMENTED;
  189. }
  190.  
  191. /* readonly attribute PRInt32 effectiveKeyBits; */
  192. NS_IMETHODIMP nsCipherInfo::GetEffectiveKeyBits(PRInt32 *aEffectiveKeyBits)
  193. {
  194.     return NS_ERROR_NOT_IMPLEMENTED;
  195. }
  196.  
  197. /* End of implementation class template. */
  198. #endif
  199.  
  200.  
  201. /* starting interface:    nsICipherInfoService */
  202. #define NS_ICIPHERINFOSERVICE_IID_STR "766d47cb-6d8c-4e71-b6b7-336917629a69"
  203.  
  204. #define NS_ICIPHERINFOSERVICE_IID \
  205.   {0x766d47cb, 0x6d8c, 0x4e71, \
  206.     { 0xb6, 0xb7, 0x33, 0x69, 0x17, 0x62, 0x9a, 0x69 }}
  207.  
  208. class NS_NO_VTABLE nsICipherInfoService : public nsISupports {
  209.  public: 
  210.  
  211.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_ICIPHERINFOSERVICE_IID)
  212.  
  213.   /* nsICipherInfo getCipherInfoByPrefString (in ACString aPrefString); */
  214.   NS_IMETHOD GetCipherInfoByPrefString(const nsACString & aPrefString, nsICipherInfo **_retval) = 0;
  215.  
  216. };
  217.  
  218. /* Use this macro when declaring classes that implement this interface. */
  219. #define NS_DECL_NSICIPHERINFOSERVICE \
  220.   NS_IMETHOD GetCipherInfoByPrefString(const nsACString & aPrefString, nsICipherInfo **_retval); 
  221.  
  222. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  223. #define NS_FORWARD_NSICIPHERINFOSERVICE(_to) \
  224.   NS_IMETHOD GetCipherInfoByPrefString(const nsACString & aPrefString, nsICipherInfo **_retval) { return _to GetCipherInfoByPrefString(aPrefString, _retval); } 
  225.  
  226. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  227. #define NS_FORWARD_SAFE_NSICIPHERINFOSERVICE(_to) \
  228.   NS_IMETHOD GetCipherInfoByPrefString(const nsACString & aPrefString, nsICipherInfo **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCipherInfoByPrefString(aPrefString, _retval); } 
  229.  
  230. #if 0
  231. /* Use the code below as a template for the implementation class for this interface. */
  232.  
  233. /* Header file */
  234. class nsCipherInfoService : public nsICipherInfoService
  235. {
  236. public:
  237.   NS_DECL_ISUPPORTS
  238.   NS_DECL_NSICIPHERINFOSERVICE
  239.  
  240.   nsCipherInfoService();
  241.  
  242. private:
  243.   ~nsCipherInfoService();
  244.  
  245. protected:
  246.   /* additional members */
  247. };
  248.  
  249. /* Implementation file */
  250. NS_IMPL_ISUPPORTS1(nsCipherInfoService, nsICipherInfoService)
  251.  
  252. nsCipherInfoService::nsCipherInfoService()
  253. {
  254.   /* member initializers and constructor code */
  255. }
  256.  
  257. nsCipherInfoService::~nsCipherInfoService()
  258. {
  259.   /* destructor code */
  260. }
  261.  
  262. /* nsICipherInfo getCipherInfoByPrefString (in ACString aPrefString); */
  263. NS_IMETHODIMP nsCipherInfoService::GetCipherInfoByPrefString(const nsACString & aPrefString, nsICipherInfo **_retval)
  264. {
  265.     return NS_ERROR_NOT_IMPLEMENTED;
  266. }
  267.  
  268. /* End of implementation class template. */
  269. #endif
  270.  
  271. #define NS_CIPHERINFOSERVICE_CID { /* ec693a6f-0832-49dd-877c-89f6552df5de */ \
  272.     0xec693a6f,                                                        \
  273.     0x0832,                                                            \
  274.     0x49dd,                                                            \
  275.     {0x87, 0x7c, 0x89, 0xf6, 0x55, 0x2d, 0xf5, 0xde}                   \
  276.   }
  277. #define NS_CIPHERINFOSERVICE_CONTRACTID "@mozilla.org/security/cipherinfo;1"
  278.  
  279. #endif /* __gen_nsICipherInfo_h__ */
  280.